package com.manager.Util;

/**
 * 
 * @author guibin
 *
 */
public class JsonUtils {
	private String msg;
	private Integer status;
	private Object data;

	public JsonUtils() {

	}

	public JsonUtils(Object data) {
		this.data = data;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Object getData() {
		return data;
	}

	public void setData(Object data) {
		this.data = data;
	}

	public JsonUtils(String msg, Integer status, Object data) {
		super();
		this.msg = msg;
		this.status = status;
		this.data = data;
	}

	public static JsonUtils jsonResult(String msg, Integer status, Object data) {
		return new JsonUtils(msg, status, data);
	}

	public static JsonUtils resultOk(Object data) {
		return new JsonUtils("ok",200,data);
	}
}
